package main

import (
	"CDSystem/v2/config"
	"CDSystem/v2/server"
	"log"

	"github.com/gin-gonic/gin"
)

func init() {
	log.Println("配置日志......")
	log.SetOutput(config.OutputWriter)
	log.SetPrefix("[log]")
	log.SetFlags(log.Ldate | log.Llongfile | log.Ltime)
}

func main() {
	//gin.SetMode(gin.ReleaseMode)
	defer config.LogFile.Close()
	log.Println("服务器已启动，日志请查看 ./log.txt......")
	server.App.Start("", "888", gin.TestMode)
}
